TeamsDR-Remove Customer Device

The TeamsDR-Remove Customer Device script removes a device from an existing Teams Direct Routing Customer, and is shown below:

Copy
### Script Version 1.2 ###
# Removing Device from existing Customer
# Id: 5461225
#

configure network
 no access-list where description "{{CustomerId}}"
 exit

configure voip
 no ip-group where name "{{CustomerId}}-c"
 no proxy-set where proxy-name "{{CustomerId}}"
 no sip-definition account where account-name "{{CustomerId}}"
 {{#each SBC.DialPlanPrefixes}}
   sbc dial-plan where name "CustDevice"
   no  dial-plan-rule where name "{{../CustomerId}}"
   exit
  exit
 {{/each}}
do write